app.directive("footer",function(){
	return{
		template:"<div class='h_60'></div>"
					+"<div class='weui-tabbar'>"
						+"<a class='weui-tabbar__item'>"
			      			+"<div class='weui-tabbar__icon' ng-click='goStore()'>"
			        			+"<img src='img/gxd.png' alt=''>"
			      			+"</div>"
			      			+"<p class='weui-tabbar__label'>逛小店</p>"
			    		+"</a>"
					    +"<a href='#/myCenter' class='weui-tabbar__item weui-bar__item--on'>"
					     	+"<div class='weui-tabbar__icon'>"
					        	+"<img src='img/index2.png' alt=''>"
					      	+"</div>"
					      	+"<p class='weui-tabbar__label weui-tabbar__label_active' ng-if='footMarket==1'>赶集市</p>"
					      	+"<p class='weui-tabbar__label' ng-if='footMarket==0'>赶集市</p>"
					    +"</a>"
					    +"<a class='weui-tabbar__item' ng-click='goBuyEgg()'>"
					      	+"<div class='weui-tabbar__icon'>"
					        	+"<img src='img/foot-chicken.png' alt='' style='width: 21.5px;'>"
					      	+"</div>"
					      	+"<p class='weui-tabbar__label'>买蛋鸡</p>"
					    +"</a>"
					    +"<a class='weui-tabbar__item' href='#/myCenter'>"
					    	+"<div class='weui-tabbar__icon'>"
					        	+"<img src='img/person.png' alt='' style='width: 18.5px;'>"
					     	+"</div>"
					     	+"<p class='weui-tabbar__label'>查收获</p>"
					  	+"</a>"
			  	+"</div>",
		restrict:"EAC"
	}
})